<!-- 页头组件 -->
<template>
  <div class="header">
      <div class="logo flex-item"><img :src="datas.img" alt=""></div>
      <div class="search flex-item">
          <div><input type="text"><span class="searchBtn">搜索</span></div>
      </div>
      <div class="servicer flex-item">
          <div style="font-size:20px;color:#ee5566;">客服电话:{{datas.phoneNum}}</div>
          <div style="font-size:13px;">客服时间:{{datas.time}}</div>
      </div>

      <!-- 插槽的作用主要显示编辑删除按钮 -->
      <slot></slot>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: {
    datas: Object
  },
  components: {},

  computed: {},

  methods: {}
};
</script>
<style scoped>
.header {
  width: 100%;
  height: 100px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  padding-top: 20px;
  box-sizing: border-box;
}
.header .flex-item {
  width: 33%;
}
.logo {
  height: 100px;
  margin-top: -20px;
}
.logo img {
  width: 200px;
  height: 100%;
}
.search {
  height: 50px;
}
.search input {
  height: 20px;
  padding: 3px 3px;
}
.searchBtn {
  border: 1px solid #666;
  background: #999;
  color: #eee;
  height: 30px;
  display: inline-block;
  margin-top: 15px;
  box-sizing: border-box;
  padding: 0 10px;
}
</style>